#include<iostream>
using namespace std;
class Box
{
public:
	void get_value();
	float volume();
	void display();


private:
	float length;
	float width;
	float heigth;
};
float Box::volume()
{
	return (length * width * heigth);
}
void Box::get_value()
{
	cout << "please input length,width,heigth:";
	cin >> length;
	cin >> width;
	cin >> heigth;

}
void Box::display()
{
	cout << volume() << endl;
		
}
int main()
{
	Box box1, box2, box3;
	box1.get_value();
	cout << "volume of box1 is:";
	box1.display();
	box2.get_value();
	cout << "volume of box2 is:";
	box2.display();
	box3.get_value();
	cout << "volume of box3 is:";
	box3.display();
	return 0;
}